package pl.polsl.mmm.projectcomm.objects.MD5;

import pl.polsl.mmm.projectcomm.data.vec3;

/**
 * Created by Maciek on 2014-11-01.
 */
public class MD5Weight {
    private int		joint;
    private float	bias;
    private vec3 location;
    private vec3	normal;

    public MD5Weight() {
        location = new vec3();
        normal = new vec3();
    }

    public MD5Weight(MD5Weight originalWeight) {
        this.joint = originalWeight.joint;
        this.bias = originalWeight.bias;
        this.location = originalWeight.location;
        this.normal = originalWeight.normal;
    }

    public void resetNormal() {
        normal.x = 0f;
        normal.y = 0f;
        normal.z = 0f;
    }
    /****************************GETTERY I SETTERY****************************************/
    public int getJoint() {
        return joint;
    }

    public void setJoint(int joint) {
        this.joint = joint;
    }

    public float getBias() {
        return bias;
    }

    public void setBias(float bias) {
        this.bias = bias;
    }

    public vec3 getLocation() {
        return location;
    }

    public void setLocation(vec3 location) {
        this.location = location;
    }

    public vec3 getNormal() {
        return normal;
    }

    public void setNormal(vec3 normal) {
        this.normal = normal;
    }

    /*public vec3 getTangent() {
        return tangent;
    }

    public void setTangent(vec3 tangent) {
        this.tangent = tangent;
    }*/
}
